package com.shuangdj.databinding.bean;

import android.databinding.BaseObservable;
import android.databinding.Bindable;

import com.shuangdj.databinding.BR;


/**
 * Created by linxiaoke on 17/4/1.
 */

public class TestModel extends BaseObservable {

//    public final ObservableField<String> name = new ObservableField<>();

    private String name;
    private String def = "click";
    private int type;


    public TestModel(String name) {
        this.name = name;
    }

    @Bindable
    public String getDef() {
        return def;
    }

    public void setDef(String def) {
        this.def = def;
        notifyPropertyChanged(BR.def);
    }

    @Bindable
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
        notifyPropertyChanged(BR.name);
    }

    @Bindable
    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
        notifyPropertyChanged(BR.type);
    }
}
